package com.zhang.gulimall.authserver.feign;

import com.zhang.gulimall.common.vo.GiteeUser;
import com.zhang.gulimall.authserver.vo.UserLoginVo;
import com.zhang.gulimall.authserver.vo.UserRegisterVo;
import com.zhang.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")
public interface MemberFeign {

    @RequestMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo user);


    @RequestMapping("/member/member/login")
    R login(@RequestBody UserLoginVo user);

    @RequestMapping("/member/member/social/login")
    R socialLogin(@RequestBody GiteeUser user);
}
